<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>this is test</title>
</head>
<body>
<p th:text="${hello}">test</p>



<a th:href="'javascript:a(\''+${hello}+'\')'">11111</a>
<script language="JavaScript">
    function a(kkk) {
        alert(kkk);
    }
</script>
</body>
</html>